#include <iostream>
#include "../adm_framebuffer.h"

using namespace Andromeda;
using namespace std;
int main() {
  int x, y;
  unsigned char r, g, b, a;
  FrameBufferPNG *fb= new FrameBufferPNG(200, 300, "red.png");
  for (y = 0; y< 300; y++)
    for (x = 0; x < 200; x++ ) {
      r = (x + y) % 255;
      g = (x * y) % 255;
      b = x %255;
      a = y %255;
      fb->Pixel(x, y, r, g, b , a);
    }
  fb->OutputFile();

  delete fb;
  return 0;
}
